package com.xinnet.mms.cart.dao;

import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.xinnet.core.utils.page.PageView;
import com.xinnet.mms.entity.ShopCart;

@Repository
public interface ShopCartDao {
	/**
	 * 
	 * 功能描述：根据会员ID取得该会员购物车内的产品
	 * 
	 * @author 王湛智
	 * 
	 * @param cusId
	 * @return
	 * @throws SQLException
	 */
	public List<ShopCart> getShopCartByCusId(String cusId) throws SQLException;
	/**
	 * 
	 * 功能描述：根据会员ID查询该会员购物车内的产品(分页)
	 * 
	 * @author 王湛智
	 * 
	 * @param pageView
	 * @return
	 * @throws SQLException
	 */
	public PageView<ShopCart> queryShopCartByCusIdPageView(PageView<ShopCart> pageView,String cusId) throws SQLException;
}
